#!/bin/bash

main_dir=`pwd`

#1, build the livox lib
mkdir ${main_dir}/../Livox-SDK/build
cd ${main_dir}/../Livox-SDK/build
cmake ..
make

#2, build the lpms lib
mkdir ${main_dir}/../lpms/lpmsig1opensourcelib/build
cd ${main_dir}/../lpms/lpmsig1opensourcelib/build
cmake ..
make

#3, install wiringPi
sudo apt-get install wiringPi


#4, build main
cd ${main_dir}
make


